import java.util.Scanner;
public class Text {
    public static void max(int x,int y){
        if(x>y){
            System.out.println(x);
        }else{
            System.out.println(y);
        }
    }
    public static void max(double x,double y,double z){
        int count=2;
        double a=0;
        while (count!=0){
            if(x>y){
                y=z;
                a=x;
            }else {
                x=z;
                a=y;
            }
            count--;
        }
        System.out.println(a);
    }
    public static void main(String[] args) {
        max(2,3);
        max(2.1,3.1,4.1);
    }
    public static void sum(int x,int y){
        System.out.println(x+y);
    }
    public static void sum(double x,double y,double z){
        System.out.println(x+y+z);
    }
    public static void main2(String[] args) {
        sum(2,5);
        sum(3.1,1.1,2.1);
    }
    public  static int max2(int x,int y){
        if(x>y){
           return x;
        }else{
            return y;
        }
    }
    public static void max3(int x,int y,int z){
        int count=2;
        while(count!=0){
            x=max2(x,y);
            y=z;
            count--;
        }
        System.out.println(x);
    }
    public static void main1(String[] args) {
        Scanner in=new Scanner(System.in);
        int a=in.nextInt();
        int b=in.nextInt();
        int c=in.nextInt();

        max3(a,b,c);
    }
}
